package com.example.administrator.familfinalcialmanagement.ui.activity;

import android.content.Intent;
import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;

import com.example.administrator.familfinalcialmanagement.MainActivity;
import com.example.administrator.familfinalcialmanagement.R;
import com.example.administrator.familfinalcialmanagement.databinding.ActivitySetBinding;
import com.example.administrator.familfinalcialmanagement.ui.BaseActivity;

/**
 * Created by Administrator on 2019/3/27.
 */

public class SetActivity extends BaseActivity {

    ActivitySetBinding binding;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        binding = DataBindingUtil.setContentView(this, R.layout.activity_set);
        binding.setActivity(this);
        initView();
    }

    private void initView() {
        setBack();
        binding.textViewOutApp.setOnClickListener(this);
    }

    @Override
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.textViewOutApp:
                startActivity(new Intent(SetActivity.this, MainActivity.class));
                finish();
                break;
            default:
        }
    }
}
